package com.biz.primus.auth.feign;

import com.biz.primus.model.sso.auth.vo.MenuGroupVO;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

/**
 * Created by younger on 17/11/6.
 */
@FeignClient(qualifier = "menuGroupFeignClient", name = "service-sso-auth", fallback = MenuGroupDegradedFeignClient.class)
public interface MenuGroupFeignClient {

    /**
     * 拿到所有可用的菜单
     */
    @PostMapping("soa/menuGroupService/findEnabledMenuGroups")
    public List<MenuGroupVO> findEnabledMenuGroups();
}
